package com.bookmarket.service.impl;

import com.bookmarket.dao.LJpreview;
import com.bookmarket.entity.Book;
import com.bookmarket.entity.BookName;
import com.bookmarket.service.LJpreviewService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("/lJpreviewService")
public class LJpreviewServiceImpl implements LJpreviewService{

    @Resource
    private LJpreview lJpreview;

    //向表中插入上传文件照片后缀以及文件名
    public boolean insertBookName(BookName bookName){
        System.out.println(bookName.getPicture());
        return lJpreview.insertBookName(bookName);
    }
    //拿路径
    public List<BookName> selectByBookName(){
        return lJpreview.selectByBookName();
    }



    public LJpreview getlJpreview() {
        return lJpreview;
    }

    public void setlJpreview(LJpreview lJpreview) {
        this.lJpreview = lJpreview;
    }
}
